﻿from Tkinter import *

class ImprovedButton(Button) :
    def __init__(self, master, id_image, position_image, position, **options) :
        Button.__init__(self, master, options)
        self.__id_image = id_image
        self.__position_image = position_image
        self.__position = position
        self.__info = ''
        
    def set_image(self, id_image, position_image, image) :
        self.__id_image = id_image
        self.__position_image = position_image
        self.config(image=image)      
        
    def get_id(self) :
        return self.__id_image        
        
    def get_image(self) :
        return self.__position_image
        
    def get_position(self) :
        return self.__position
    
    def set_info(self, info):
        self.__info = info

    def get_info(self):
        return self.__info
